package lab02.test02;

class Circle{
//定义属性
    double pai;
 double radii;
 double perimeter;
 double area;
//构造方法
void  setArea (double area){
   this.area=area;
}
void setPerimeter(double perimeter){
   this.perimeter =perimeter;
}
//有返回值时不能用void,获取方法
    public double getArea() {
        return (pai*radii*radii);
    }
    public double getPerimeter(){
        return (pai*radii*2);
    }
}
